/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wisnu.scs.dao;

import com.wisnu.scs.entity.DbBarang;
import com.wisnu.scs.error.ErrorMessage;
import java.util.List;

/**
 *
 * @author Wisnu Wardoyo
 */
public interface DbBarangDao {

    void insertBarang(DbBarang barang) throws ErrorMessage;

    void updateBarang(DbBarang barang) throws ErrorMessage;

    void deleteBarang(DbBarang barang) throws ErrorMessage;

    List<DbBarang> selectBarangByName(String name) throws ErrorMessage;

    DbBarang selectBarangById(Integer id) throws ErrorMessage;

    List<DbBarang> selectAllBarang() throws ErrorMessage;

}
